defaults write com.apple.finder AppleShowAllFiles -boolean true

defaults write com.apple.finder AppleShowAllFiles -boolean false